/*
 *  Copyright 2012 Alexey Andreev.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package ru.justplay.chess.actors;

import java.io.Serializable;

/**
 *
 * @author Alexey Andreev
 */
public class Move implements Serializable {
    private static final long serialVersionUID = -924310688689529334L;
    private PieceType piece;
    private BoardLocation source;
    private BoardLocation destination;
    private PieceType capturedPiece;
    private PieceType promotedPiece;
    private MoveState state = MoveState.NONE;

    public BoardLocation getSource() {
        return source;
    }

    public void setSource(BoardLocation source) {
        this.source = source;
    }

    public BoardLocation getDestination() {
        return destination;
    }

    public void setDestination(BoardLocation destination) {
        this.destination = destination;
    }

    public PieceType getPiece() {
        return piece;
    }

    public void setPiece(PieceType piece) {
        this.piece = piece;
    }

    public PieceType getCapturedPiece() {
        return capturedPiece;
    }

    public void setCapturedPiece(PieceType capturedPiece) {
        this.capturedPiece = capturedPiece;
    }

    public PieceType getPromotedPiece() {
        return promotedPiece;
    }

    public void setPromotedPiece(PieceType promotedPiece) {
        this.promotedPiece = promotedPiece;
    }

    public MoveState getState() {
        return state;
    }

    public void setState(MoveState state) {
        this.state = state;
    }
}
